<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>前台首页</title>
<meta name="renderer" content="webkit">	
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
<meta name="apple-mobile-web-app-status-bar-style" content="black">	
<meta name="apple-mobile-web-app-capable" content="yes">	
<meta name="format-detection" content="telephone=no">	
<link rel="stylesheet" type="text/css" href="../static/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../static/common/bootstrap/css/bootstrap.css" media="all">
<link rel="stylesheet" type="text/css" href="../static/common/global.css" media="all">
<link rel="stylesheet" type="text/css" href="../static/css/personal.css" media="all">
<link href="/bsc/static/assets/css/bootstrap.css" type="text/css" rel="stylesheet" />
<link href="/bsc/static/assets/css/style.css" type="text/css" rel="stylesheet" />
</head>
<body style='overflow:-Scroll;overflow-y:hidden'>
		<div class="navbar navbar-inverse set-radius-zero">
			<div class="container">
				<div class="navbar-header">
						<img src="/bsc/static/assets/img/logo.png" />
				</div>
				<div class="right-div">
				<span>
				<c:if test="${not empty menu }">
				<font size="5" color="#125313"><b>欢迎登陆(${bisshop.shop_name })：</b></font>(${shopPost.post_name })${shopuser.username }
				</c:if>
				</span>
                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="/bsc/user/shoplogout" class="btn btn-danger pull-right">退出</a>
				</div>
			</div>
		</div>
		<section class="menu-section">
			<div class="container">
				<div class="row ">
					<div class="col-md-12">
						<div class="navbar-collapse collapse ">
							<ul id="menu-top" class="nav navbar-nav navbar-right">
							<c:if test="${shopuser.user_type=='1' }">
							        <li><!-- /bsc/user/shopkeeper?shop_id=1808280026137760 -->
									    <a  target="myiframe" class="menu-top-active">首页</a>
								    </li>
							    </c:if>
							 <c:if test="${not empty menu }">
							     <c:forEach items="${menu }" var="m">
									<li>
										<a href="${m.url }" target="myiframe">${m.menu_name }</a>
									</li>
                                </c:forEach>
                             </c:if>
							</ul>
						</div>
					</div>

				</div>
			</div>
		</section>
		<div>
				<section class="layui-larry-box">

	<form class="form-inline" role="form" action="/bsc/finance/listuser" method="post">
	
            <blockquote class="layui-elem-quote news_search">
      
  <div class="form-group">
     <table border="0">
     <tr>
     <td style="padding-right:5px">姓名:</td>
     <td style="padding-right:100px">
     ${bsu.username }
     登录时间: <span id="time"></span>
     </td>
     
     </tr>
      <tr>
     <td >账号:</td><td>${bsu.account }</td>
     </tr>
      <tr>
   <td>身份:</td><td>${bsu.bis_shop_postpost_code.post_name } </td>
     </tr>
     </table>
  </div>
	</blockquote>
            
		         <!-- 操作日志 -->
                <div class="layui-form news_list">
                    <table class="layui-table" id="tab">
					    <colgroup>
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="15%">
					</colgroup>
					<thead>
						<tr>
							<td style="text-align:left;">编号</td>
							<td>店铺二维码</td>
							<td>店铺编号</td>
							<td>店铺名称</td>
							<td>营业额</td>
							<td>营业记录</td>
							<td>目标额</td>
							<td>操作</td>
						</tr>
					</thead>
					<tbody class="news_content"  id="tb">
						<c:forEach items="${list}" var="home" varStatus="s">
						<tr>
							<td align="left">${s.index+1 }</td>
 							<td>
 							 <img alt="" src="/bsc${home.shop_qrcode }" width="100" height="100">
 							</td> 
							<td>${home.shop_id }</td>
							<td>${home.shop_name }</td>
							<td>${home.bom }</td> 
							<td>${home.boi }</td>
							<td>${home.month_cash_in }</td>
							<td><a href="/bsc/user/shopkeeper?shop_id=${home.shop_id }" >进入店铺</a></td>
						</tr>
						</c:forEach>
					</tbody>
					</table>
                     
		</div>
		
	  </form> 
</section>
		</div>
		<script type="text/javascript" src="../static/common/layui/layui.js"></script>
<!-- <script type="text/javascript" src="../static/js/newslist.js"></script> -->
 <script type="text/javascript" src="../static/js/jquery-1.7.1.js"></script> 
<script type="text/javascript" src="../static/common/bootstrap/js/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
<script type="text/javascript">
function currentTime(){
		var d = new Date();
		var str = "";
		str+=d.getFullYear()+'年';
		str+=(d.getMonth()+1)+'月';
		str+=d.getDate()+'日';
		str+=d.getHours()+'时';
		str+=d.getMinutes()+'分';
		str+=d.getSeconds()+'秒';
		return str;
	}
	$("#time").html(currentTime);
	setInterval(function(){$("#time").html(currentTime)},1000);
</script>
	</body>
</html>